package com.zl.csMall.indexShow.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zl.csMall.indexShow.po.ShowCommodity;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface ShowCommodityService extends IService<ShowCommodity> {

    /**
     * @description: 查询全部首页商品信息
     * @author ChenNing
     * @date: 2025-10-20 15:53
     */
    List<Map<String, Object>> getShowCommodityAll(LambdaQueryWrapper<ShowCommodity> queryWrapper);

    /**
     * @description: 根据ID删除首页展示商品及其图片文件
     * @param id 首页展示商品ID
     * @author ChenNing
     * @date: 2025-10-20 16:21
     */
    boolean deleteById(long id);

    /**
     * @description: 获取 商品首页顶部背景轮播图集合
     * @author ChenNing
     * @date: 2025-10-23 15:30
     */
    List<String> getCommodityIndexBackground();

    /**
     * @description: 更新商品首页顶部背景轮播图
     * @author ChenNing
     * @date: 2025-10-22 14:42
     */
    boolean updateCommodityIndexBackground(MultipartFile[] fileArr);

}
